package com.erp.produce.dao;

import com.erp.produce.entity.Order;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OrderDao extends JpaRepository<Order,Long> {
    List<Order> findAllByCustomerNameLike(String name,Pageable pageable);

    List<Order> findAllByCustomerNameLike(String name);
}
